package com.hxzy.shop.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 帮砍人赠送优惠券
 * @TableName full_haggle_help_coupons
 */
@TableName(value ="full_haggle_help_coupons")
@Data
@ApiModel("砍价赠送优惠券")
@Accessors(chain = true)
public class FullHaggleHelpCoupons implements Serializable {
    /**
     * 帮砍人赠送优惠券ID
     */

    @TableId(value = "id")
    private Long id;

    /**
     * 活动id
     */
    @ApiModelProperty(value = "活动id")
    @TableField(value = "haggle_id")
    private Long haggleId;

    /**
     * 优惠券id
     */
    @ApiModelProperty(value = "优惠券id")
    @TableField(value = "coupon_id")
    private Long couponId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 商户id
     */
    @ApiModelProperty(value = "..",hidden = true)
    @TableField(value = "merchant_id")
    private Long merchantId;

    /**
     * 优惠卷名称
     */
    @ApiModelProperty(value = "优惠卷名称")
    @TableField(value = "coupon_name")
    private String couponName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}